package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Group implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField("group_id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @TableField("location")
    @ApiModelProperty(value = "组团地点")
    private String location;

     @TableField("sport_id")
     @ApiModelProperty(value = "外键，关联运动类别表")
     private Long sportId;

     @TableField("status")
     @ApiModelProperty(value = "组团状态")
     private String status;

}
